﻿
namespace SanguoSharp.Server.Cards
{
    public sealed class 杀 : TargetPlayerCard
    {
        protected override int Range
        {
            get { return Owner.WeaponRange; }
        }
        public 杀(Game game, int id, CardSuit suit, CardRank rank)
            : base(game, id, CardType.杀, suit, rank, RequestType.KillTarget)
        {
        }

        protected override void OnPlay(Player owner, Player targetPlayer)
        {
            owner.OnPlayedBang();

            Game.GameCycle.PushTempHandler(new KillResponseHandler(targetPlayer, owner, owner.KillPower));
        }
    }
}